<div class="task">
<?php include ('buttons.tpl'); ?>
</div>
<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<h2><?php echo $heading_title; ?></h2>
<div class="description"><?php echo $heading_description; ?></div>
<div id="mail">
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
    <table>
      <tr>
        <td align="right"><span class="required">*</span> <?php echo $entry_subject; ?></td>
        <td><input name="subject" value="<?php echo $subject; ?>" />
          <?php if ($error_subject) { ?>
          <span class="error"><?php echo $error_subject; ?></span>
          <?php } ?></td>
      </tr>
      <tr>
        <td align="right" valign="top"><span class="required">*</span> <?php echo $entry_content; ?></td>
        <td><textarea name="content" id="content" class="editor"><?php echo $content; ?></textarea>
          <?php if ($error_content) { ?>
          <span class="error"><?php echo $error_content; ?></span>
          <?php } ?></td>
      </tr>
      <tr>
        <td align="right"><?php echo $entry_send; ?></td>
        <td>
          <input type="radio" name="send" value="1" <?php if ($send == 1) { ?>checked="checked"<?php }?>>
          <?php echo $text_yes; ?>
          <input type="radio" name="send" value="0" <?php if ($send != 1) { ?>checked="checked"<?php }?>>
          <?php echo $text_no; ?>
          </td>
      </tr>
    </table>
  </form>
</div>

<?php if (isset($editor)) { echo $editor; } ?>
